package proxy04;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class HandlerImpl implements InvocationHandler {
    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println(proxy.getClass());
        System.out.println(proxy.getClass().getSuperclass());
        for (Class<?> i : proxy.getClass().getInterfaces()) {
            System.out.println(i);
        }
        System.out.println(method);
        System.out.println(args);

        return null;
    }
}
